# 正常的while...else语句会在循环结束后执行else后的语句
numbers = 0
while numbers < 5:
    print(numbers)
    numbers += 1
else:
    print('输出完毕')

# 加入contiue对while...else语句的影响
numbers = 0
while numbers < 5:
    print(numbers)
    numbers += 1
    if numbers == 2:
        print(f'执行了数字：{numbers}')
else:
    print('输出完毕')

# 加入break对while...else语句的影响
numbers = 0
while numbers < 5:
    print(numbers)
    if numbers == 2:
        print('中断循环')
        break
    numbers += 1
else:
    print('输出完毕')